<%@ page import="com.ufida.ebscg.comm.session.UserBean" %>
<%@ page contentType="text/html;charset=UTF-8"  %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>招商银行供应商门户-采购创造价值-供应商自助_信息修改03</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<link href="../css/style_add.css" rel="stylesheet" type="text/css" />
<link href="css/selfcss.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
	@import url(css/select2css.css);
-->
</style>
<script type="text/javascript" src="js/select2css.js"></script>
<script language="JavaScript" type="text/javascript" src="../javascript/caltimer.js"></script>
</head>

<body style="width:610px">
<div id="main">
<form  action="modifyperson.do" name="registerForm" method="post">
<input type="hidden" name="steptype" value="3"/>
<input type="hidden" name="zdy6" value="${message.zdy6}"/>
<input type="hidden" id="changeField" name="changeField" value=""/>
<div id="right">
  <table width="610" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><table width="610" border="0" cellpadding="0" cellspacing="0" background="images/self_bjc_003.jpg" height="26">
        <tr>
          <td width="10" align="center">&nbsp;</td>
          <td width="85" align="center" class="f-14-818080"><a href="modifyperson.do?to=1">基本信息</a></td>
          <td width="83" align="center" class="f-14-818080"><a href="modifyperson.do?to=1&steptype=1">联系信息</a></td>
          <td width="83" align="center" class="f-14-2b5577">其他信息</td>
          <td width="85" align="center" class="f-14-818080"><a href="modifyperson.do?to=1&steptype=3">多联系人</a></td>
          <td width="85" align="center" class="f-14-818080"><a href="modifyperson.do?to=1&steptype=4">文档上传</a></td>
          <td>&nbsp;</td>
        </tr>
      </table></td>
      </tr>
    <tr>
      <td >&nbsp;</td>
    </tr>
    </table>
<table>
	<tr>
    <td class="textright"> 近三年财务状况：</td>
    <td colspan="2"><html:textarea property="businessinfo" onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.businessinfo}" style="color:black;font-size:12px;">
    </html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>含各年营业收入、净<br />利润、资产负债比</td>
  </tr>
  <tr>
    <td class="textright">主要客户群及占销售比例情况：</td>
    <td colspan="2"><html:textarea property="customer"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.customer}" style="color:black;font-size:12px;"></html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="textright"> 本产品的主流型号及市场价格：</td>
    <td colspan="2"><html:textarea property="product"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.product}" style="color:black;font-size:12px;"></html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td class="textright"> 全国售后服务网络：</td>
    <td colspan="2"><html:textarea property="sales_ablity_desc"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.sales_ablity_desc}" style="color:black;font-size:12px;"></html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>需附件清单，自有分支<br />机构或代理机构需分<br />别注明，可通过“文<br />档上传”上传附件清单</td>
  <tr>
    <td class="textright"> 所属行业水平及外部评价情况（如有）：</td>
    <td colspan="2"><html:textarea property="judge"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.judge}" style="color:black;font-size:12px;"></html:textarea>
      </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="textright"> 公司管理情况，如外部认证、认可证书等：</td>
    <td colspan="2"><html:textarea property="manage_sitation"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.manage_sitation}" style="color:black;font-size:12px;"></html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="textright"> 风险管理能力（含突发事件应对能力）：</td>
    <td colspan="2"><html:textarea property="danger_manage"  onfocus="onfocusdo(this)" cols="30" rows="3" onblur="onblurdo(this)" value="${message.danger_manage}" style="color:black;font-size:12px;"></html:textarea>
      <span class="f-12-F60000">*</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4" class="f-12-F60000">提示：带“*”的为必填信息；若界面显示不全面，请先设置IE浏览器到兼容性视图，具体操作请见首页相关操作手册。</td>
    </tr>  
  <tr>
    <td colspan="4" class="center">
    <img src="../images/botton_revision .jpg" width="60"  height="20" border="0"  onclick="onclicksubmit()" style="cursor:hand"/></td>
    </tr>
</table>
</form>
</div>
<script language="javascript">

	function reset()
	{
		document.registerForm.reset();
	}
	
	function onclicksubmit()
	{
	var formtemp = document.registerForm;
	
	if(formtemp.businessinfo.value == '')
	{
		formtemp.businessinfo.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.customer.value == '')
	{
		formtemp.customer.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.product.value == '')
	{
		formtemp.product.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.sales_ablity_desc.value == '')
	{
		formtemp.sales_ablity_desc.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.manage_sitation.value == '')
	{
		formtemp.manage_sitation.style.backgroundColor="#ffaa44";
		return;
	}else if(formtemp.danger_manage.value == '')
	{
		formtemp.danger_manage.style.backgroundColor="#ffaa44";
		return;
	}
	if(isChange(formtemp)){
		alert("没有修改任何内容");
		return ;
	}
		formtemp.submit();
	}
	function isChange(formtemp){
		/*
		if(formtemp.businessinfo.value != '${message.businessinfo}')
		{
			formtemp.changeField.value = 'businessinfo';
		}
		if(formtemp.customer.value != '${message.customer}')
		{
			formtemp.changeField.value += ',customer';
		}
		if(formtemp.product.value != '${message.product}')
		{
			formtemp.changeField.value += ',product';
		}
		if(formtemp.sales_ablity_desc.value != '${message.sales_ablity_desc}')
		{
			formtemp.changeField.value += ',sales_ablity_desc';
		}
		if(formtemp.judge.value != '${message.judge}')
		{
			formtemp.changeField.value += ',judge';
		}
		if(formtemp.manage_sitation.value != '${message.manage_sitation}')
		{
			formtemp.changeField.value += ',manage_sitation';
		}
		if(formtemp.danger_manage.value != '${message.danger_manage}')
		{
			formtemp.changeField.value += ',danger_manage';
		}
		*/
		if(formtemp.changeField.value == ''){
			return true;
		}
		return false;
	}
	
	function onblurdo(obj)
	{
		if(obj.value == '' )
		{
			obj.style.backgroundColor="#ffaa44";
		}else
		{
			obj.style.backgroundColor="#ffffff";
		}
	}
	function onfocusdo(obj){
		if(obj.name == 'businessinfo'){
			if(document.registerForm.changeField.value.indexOf('businessinfo') == -1){
				document.registerForm.changeField.value += ',businessinfo';
			}
		}else if(obj.name == 'customer'){
			if(document.registerForm.changeField.value.indexOf('customer') == -1){
				document.registerForm.changeField.value += ',customer';
			}
		}else if(obj.name == 'product'){
			if(document.registerForm.changeField.value.indexOf('product') == -1){
				document.registerForm.changeField.value += ',product';
			}
		}else if(obj.name == 'sales_ablity_desc'){
			if(document.registerForm.changeField.value.indexOf('sales_ablity_desc') == -1){
				document.registerForm.changeField.value += ',sales_ablity_desc';
			}
		}else if(obj.name == 'judge'){
			if(document.registerForm.changeField.value.indexOf('judge') == -1){
				document.registerForm.changeField.value += ',judge';
			}
		}else if(obj.name == 'manage_sitation'){
			if(document.registerForm.changeField.value.indexOf('manage_sitation') == -1){
				document.registerForm.changeField.value += ',manage_sitation';
			}
		}else if(obj.name == 'danger_manage'){
			if(document.registerForm.changeField.value.indexOf('danger_manage') == -1){
				document.registerForm.changeField.value += ',danger_manage';
			}
		}
		//alert(document.registerForm.changeField.value);
	}
</script>
</body>
</html>
